package com.huage.courseplatform.application.model.param;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huage.courseplatform.framework.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("hg_homework_done")
@ApiModel(value="课后作业完成记录",description="课后作业完成记录")
public class HomeworkDonePARAM  implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "id",required = true)
    private String id;

    @NotEmpty(message = "学生id不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "学生id",required = true)
    private String studentId;

    @NotEmpty(message = "作业id不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "作业id",required = true)
    private String homeworkId;

    @NotEmpty(message = "课后作业内容不能为空", groups = {Update.class, Insert.class})
    @ApiModelProperty(value = "课后作业内容",required = true)
    private String content;
}
